package com.hnl.dao;

import java.sql.SQLException;

public class HNLDAOFactory extends DAOFactory {

	@Override
	public UserDAO getUserDAO() throws DAOException {
		try {
			return new DBUserDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBUserDAO", e);
		}
	}

	@Override
	public TalentDAO getTalentDAO() throws DAOException {
		try {
			return new DBTalentDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBTalentDAO", e);
		}
	}

	@Override
	public TalentEducationDAO getTalentEducationDAO() throws DAOException {
		try {
			return new DBTalentEducationDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBTalentEducationDAO", e);
		}
	}

	@Override
	public ActivityDAO getActivityDAO() throws DAOException {
		try {
			return new DBActivityDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing ActivityDAO", e);
		}
	}

	@Override
	public RoleDAO getRoleDAO() throws DAOException {
		try {
			return new DBRoleDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBRoleDAO", e);
		}
	}

	@Override
	public FunctionDAO getFunctionDAO() throws DAOException {
		try {
			return new DBFunctionDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBRoleFunctionDAO", e);
		}
	}

	@Override
	public RoleFunctionDAO getRoleFunctionDAO() throws DAOException {
		try {
			return new DBRoleFunctionDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBRoleFunctionDAO", e);
		}
	}

	@Override
	public MiscDAO getMiscDAO() throws DAOException {
		try {
			return new DBMiscDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBMiscDAO", e);
		}
	}

	@Override
	public MiscTypeDAO getMiscTypeDAO() throws DAOException {
		try {
			return new DBMiscTypeDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBMiscTypeDAO", e);
		}
	}

	@Override
	public ReferralDAO getReferralDAO() throws DAOException {
		try {
			return new DBReferralDAO();
		} catch (SQLException e) {
			throw new DAOException("Error access DBReferralDAO", e);
		}
	}

	@Override
	public AttachmentDAO getAttachmentDAO() throws DAOException {
		try {
			return new DBAttachmentDAO();
		} catch (SQLException e) {
			throw new DAOException("Error access DBAttachmentDAO", e);
		}
	}

	@Override
	public EducationDAO getEducationDAO() throws DAOException {
		try {
			return new DBEducationDAO();
		} catch (SQLException e) {
			throw new DAOException("Error access DBEducationDAO", e);
		}
	}

}
